﻿<?php	 

			 
			 echo '<table id="rank" cellspacing="0" cellpadding="0" class="roundRobin" width="900">
					   <thead>
						  <tr>
							 <th class="first" abbr="\Nr&quot;" scope="col">Team</th>
							 <th class="last" scope="col">Ansprechpartner</th>
						  </tr>
					   </thead>
					   <tfoot>
						  <tr>
							 <td class="first"></td>
							 <td class="last"></td>
						  </tr>
					   </tfoot><tbody>';
			 
					 
	$abfrage = "SELECT name, contact
		FROM teams
		ORDER BY name ASC";
						 			 		
			 
			$ergebnis = mysql_query($abfrage)
				OR die("Error: $abfrage <br>".mysql_error());
				
				$cnt = 1;
			while($row = mysql_fetch_object($ergebnis))
			   {				 
					echo '
					  <tr class="rowA">
						 <td class="first">'.$row->name.'</td>
						
						 <td class="last">'.$row->contact.'</td>
					  </tr>';
					$cnt++;
			   }
			   echo '</tbody></table><br/>';
			   
		 ?>